/*
 * finddialog.h
 *
 *  Created on: Mar 17, 2010
 *      Author: mario
 */

#ifndef FINDDIALOG_H_
#define FINDDIALOG_H_

#include <qdialog.h>

class QCheckBox;
class QLabel;
class QLineEdit;
class QPushButton;

    class FindDialog : public QDialog
    {
        Q_OBJECT
    public:
        FindDialog(QWidget *parent = 0, const char *name = 0);
    signals:
            void findNext(const QString &str, bool caseSensitive);
            void findPrev(const QString &str, bool caseSensitive);
    private slots:
        void findClicked();
        void enableFindButton(const QString &text);
    private:
        QLabel *label;
        QLineEdit *lineEdit;
        QCheckBox *caseCheckBox;
        QCheckBox *backwardCheckBox;
        QPushButton *findButton;
        QPushButton *closeButton;
     };

#endif /* FINDDIALOG_H_ */
